package com.frinder.base.global;

import lombok.Getter;

/**
 * @ClassName BaseException
 * @Author frinder
 * @Description 自定义异常类
 * @Date 2019/1/19 15:18
 * @Version 1.0
 */
public class BaseException extends RuntimeException {

    @Getter
    private CODE code;

    public BaseException(CODE code) {
        super(code.getMessage());
        this.code = code;
    }

    public BaseException(String message, CODE code) {
        super(message);
        this.code = code;
    }

    public BaseException(String message) {
        super(message);
    }
}
